import ReactDOM from "react-dom/client";
import { Provider as StoreProvider } from "react-redux";
// #1
import { PersistGate } from "redux-persist/integration/react";
// #2
import store, { persistor } from "./store";
import App from "./App.tsx";

ReactDOM.createRoot(document.getElementById("root")!).render(
  <StoreProvider store={store}>
    <PersistGate persistor={persistor}>
      <App />
    </PersistGate>
  </StoreProvider>
);
